public class Demo01 {
    public static void main(String[] args) {
        StringBuilder stringBuilder = new StringBuilder("abcdefg");
        System.out.println(stringBuilder.reverse());
    }
}
